data_list = []
z = 0
f = 0
add = 0

while True:
    data = eval(input(""))
    if data == 0:
        break
    else:
        data_list.append(data)

for item in data_list:
    if item > 0:
        z += 1
    elif item < 0:
        f += 1
    add += item

print(add / len(data_list))
print(z)
print(f)
